import {request} from "@/api";
import type {EvaluationList} from "@/api/teacher/params";

//心理测评列表
function getEvaluationList(params: EvaluationList) {
    return request({
        method: 'get',
        url: `/evaluation/student/list?pageSize=${params.pageSize}&pageNum=1`,
    })
}

// 心理测评详情
function getEvaluationDetail(id: string) {
    return request({
        method: 'get',
        url: `/evaluation/student/test/${id}`,
    })
}

// 提交测评
function submitAssessment(data:any) {
    return request({
        method: 'post',
        url: `/evaluation/student/submit`,
        data
    })

}

export {
    getEvaluationList, getEvaluationDetail,submitAssessment
}